﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name：  Godownentry
    /// Author:       Fei Wang
    /// Creation Date: 2011-12-29
    /// Description:  货品入库 入库单号用时间表示 规则“GODOWNENTRY20111230104737”
    /// QA:
    /// </summary>
    public class Godownentry
    {
        [Key]
        [Required]
        public int ID { get; set; } 

        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required]
        public string  GodownentryID { get; set; }

        public virtual ProductDetailIn ProductDetailIn { get; set; }
       // public string DetailNumberIn { get; set; }

        //进货单价
        [Required(ErrorMessage = "请输入货品单价")]
        [DataType(DataType.Currency)]
        public decimal Stockprice { get; set; }
        //合计
        [Required]
        [DataType(DataType.Currency)]
        public decimal Total { get; set; }        
        //入库数量 
        [Required(ErrorMessage = "请输入货品数量")]
        public int Count { get; set; }        
        //入库时间  
        [Required]
        public DateTime Datetime { get; set; }
        //审核人       
        public string Billproducer { get; set; }

        //负责人
       
        public virtual Employee employee { get; set; }
        
        public virtual Warehouse Warehouse { get; set; }       
        //提供商
        
        public virtual ProductProvider ProductProvider { get; set; }
        
        public virtual Product Product { get; set; }
    }
}
